package com.jhl.seckill.FeignClient;

import com.jhl.seckill.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * 向用户服务通信
 */
@FeignClient("SECKILL-USER")
public interface UserClient {

    @PostMapping("/user/getUser")
    User findUser(String username);

}
